import http from '@/utils/http.js';
const user = {
	/*
	 * 方法说明: 示例请求方法
	 * author: gaomingzhe
	 * description: 
	 * @param {}   
	 * @return 
	 * @createTime: 2021-12-5 2:52:38 ?F10: PM?
	 */
	// 
	async getUserData({commit}, data){
		let params = data
		const res = await uni.$request('/general/getUser', params)
		console.log(res)
		if(res.success)commit('SET_USER_DATA', res.data)
		else uni.$toast(res.mag || '请求失败！')
		return true
	}
};

export default user;
